package com.cictec.middleware.tde.rm.protocol;

import com.cictec.middleware.commons.utils.PMSUtils;

/**
 * 消息父类
 * 
 * @author Administrator
 *
 */
public abstract class AbstractTerminalMessage{

	/** 全局消息UUID */
	private final String uuid;
	private Long sessionId;

	public AbstractTerminalMessage() {
		uuid = PMSUtils.getUUID();
	}

	/**
	 * 获取消息类型编号
	 * 
	 * @return
	 */
	public abstract int getMessageId();

	public abstract String getTerminalId();

	/**
	 * 全局消息UUID
	 * 
	 * @return
	 */
	public String getUuid() {
		return uuid;
	}

	public Long getSessionId() {
		return sessionId;
	}

	public void setSessionId(Long sessionId) {
		this.sessionId = sessionId;
	}

}
